:: 设置目录
@set nuget_d=%~dp0nuget
@set input_d=%~dp0SSH.net
@set output_d=%~dp0output
@set temp_d=%~dp0temp
:: 设置输入输出
@set input=Renci.SshNet.dll
@set output=%input%
@set options=/union /internalize /renameinternalized 
:: 执行命令
@mkdir %output_d%
@mkdir %temp_d%
:: 生成最终dll
@ilrepack /verbose %options% ^
/out:%output_d%\%output% ^
%input_d%\%input% ^
%input_d%\BouncyCastle.Cryptography.dll  ^
%input_d%\Microsoft.Bcl.AsyncInterfaces.dll ^
%nuget_d%\Microsoft.Extensions.Logging.Abstractions.dll ^
%nuget_d%\System.Formats.Asn1.dll ^
%nuget_d%\System.Buffers.dll ^
%nuget_d%\System.Memory.dll ^
%nuget_d%\System.ValueTuple.dll ^
%nuget_d%\System.Threading.Tasks.Extensions.dll ^
%nuget_d%\System.Runtime.CompilerServices.Unsafe.dll
@rmdir %temp_d% /s /q
@pause